<?php 

class Cms_Decorator_LoginLabel extends Zend_Form_Decorator_Abstract
{
     /**
     * Default placement: prepend
     * @var string
     */
    protected $_placement = 'PREPEND';

  public function render($content)
    {
      $placement = $this->getPlacement();
      $element = $this->getElement();
      $label = $element->getLabel();
      $translator = $element->getTranslator();

      if ($translator) {
          $label = $translator->translate($label);
          }

      $output = $label."<br/>";

      switch($placement)
      {
            case 'PREPEND':
                return $output . $content;
                break;
            case 'APPEND':
                return $content . $output;
                break;
            default:
                return $output . $content;
                break;
        }
    }
    
}